{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <div class="alert alert-info">信息！网站地图可方便网站管理员通知搜索引擎他们网站上有哪些可供抓取的网页，能够有效提升整站的收录率。</div>
            </div>
            <form action="/admin/sitemap/make_sitemap" method="post" class="form-horizontal" id="cpform" name="cpform" role="form" autocomplete='off'>
                <table class="table table-border ticky_table">
                    <tr>
                        <td class="w_100">选择模型</td>
                        <td class="form-inline">
                            {{foreach $modelinfo as $item}}
                            <label class="option_label">{{$item.name}}<input name="model[]" type="checkbox" value="{{$item.modelid}}" checked/></label>&nbsp;&nbsp;
                            {{/foreach}}
                        </td>
                    </tr>
                    <tr>
                        <td class="w_100">优先权</td>
                        <td class="form-inline">
                            <select name="priority" class='form-control' style="width:200px">
                                <option value="1">1</option>
                                <option value="0.9">0.9</option>
                                <option value="0.8"  selected="">0.8</option>
                                <option value="0.7">0.7</option>
                                <option value="0.6">0.6</option>
                                <option value="0.5">0.5</option>
                                <option value="0.4">0.4</option>
                                <option value="0.3">0.3</option>
                                <option value="0.2">0.2</option>
                                <option value="0.1">0.1</option>
                            </select>
                            <span style="margin-left:15px;font-size:12px;color:#888">搜索引擎抓取的优先级。数字越大，优先级越高</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="w_100">更新频率</td>
                        <td class="form-inline">
                            <select name="changefreq" class="form-control" style="width:200px">
                                <option value="always">一直更新</option>
                                <option value="hourly">小时</option>
                                <option value="daily">天</option>
                                <option selected="" value="weekly">周</option>
                                <option value="monthly">月</option>
                                <option value="yearly">年</option>
                                <option value="never">从不更新</option>
                            </select>
                            <span style="margin-left:15px;font-size:12px;color:#888">您的网站内容的更新频率</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="w_100">生成数量</td>
                        <td class="form-inline">
                            <input type="text" class="form-control" style="width:200px" name="limit" value="100">
                            <span style="margin-left:15px;font-size:12px;color:#888">每个模型的数量，不建议太大</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="w_100">文件格式</td>
                        <td class="form-inline">
                            <label class="option_label">XML格式<input name="type" type="radio" value="0" checked /></label>&nbsp;&nbsp;
                            <label class="option_label">TXT格式<input name="type" type="radio" value="1" /></label>&nbsp;&nbsp;
                        </td>
                    </tr>
                    {{if $is_make_xml}}
                    <tr>
                        <td class="w_100">sitemap.xml</td>
                        <td class="form-inline">
                            更新时间&nbsp;&nbsp;{{$make_xml_time}}&nbsp;&nbsp;
                            <a href="{{$smarty.const.SITE_URL}}sitemap.xml" target="_blank" style="margin-left:10px;color:blue">点击查看</a>
                        </td>
                    </tr>
                    {{/if}}
                    {{if $is_make_txt}}
                    <tr>
                        <td class="w_100">sitemap.txt</td>
                        <td class="form-inline">
                            更新时间&nbsp;&nbsp;{{$make_txt_time}}&nbsp;&nbsp;
                            <a href="{{$smarty.const.SITE_URL}}sitemap.txt" target="_blank" style="margin-left:10px;color:blue">点击查看</a>
                        </td>
                    </tr>
                    {{/if}}
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type='submit' name='dosubmit' class='btn btn-primary' value='提交' />
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
</html>